package hlhj.fhp.supreme.adapters

import android.widget.ImageView
import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import hlhj.fhp.supreme.R
import hlhj.fhp.supreme.javabean.ArticleListBean
import hlhj.fhp.supreme.utils.MyUtils

/**
 * Created by Never Fear   on 2018\7\17 0017.
Never More....
 */
class JiePanListAdp(datas:ArrayList<ArticleListBean.DataBean>) :BaseQuickAdapter<ArticleListBean.DataBean,BaseViewHolder>(R.layout.jiepan_list_item,datas) {
    override fun convert(helper: BaseViewHolder?, item: ArticleListBean.DataBean?) {
        helper?.setText(R.id.itemTittle,item?.title)
        helper?.setText(R.id.itemTime,item?.create_time)
        Glide.with(mContext).load(item?.img).asBitmap().error(R.mipmap.logo).into(helper?.getView(R.id.itemIcon))
    }
}